-
Notifications
You must be signed in to change notification settings - Fork 14
use bazel 8 (bzlmod migration) #134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
MODULE.bazel
Outdated
bazel_dep(name = "rules_proto", version = "5.3.0-21.7") | ||
bazel_dep( | ||
name = "protobuf", | ||
version = "26.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
previously we were using 25.2 but that doesn't exist on bazel central
NB: This PR has lots of WIP commits - I recommend squash merging it. |
This reverts commit 6c130f3.
"@com_github_jayaprabhakar_go_clone//:go-clone", | ||
"@org_golang_google_protobuf//encoding/protojson:go_default_library", | ||
"@org_golang_google_protobuf//proto:go_default_library", | ||
"@com_github_huandu_go_clone//:go-clone", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tekumara One reason I had to fork the cloning library was it was missing a feature to override pointer references.
huandu/go-clone#23
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's still using your fork - see the replace statement in go.mod
I had to do it like this to make go.mod work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm assuming bazel honours this but admittedly I haven't tested this - is there a way to test this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it. Thanks.
Thanks for the PR. I only have one issue. Is there a reason to switch one of the dependency? |
I ran it, I see this error.
|
It looks like this is an issue with Mac. The current workaround should be to add
To I'm not sure if this works in Linux. |
Interesting I didn't hit that on my Mac. I notice we are using an old version of protobuf. I've tried the PR without that .bazelrc on Ubuntu arm64 and it built fine. |
For now, I added |
Migrates to bzlmod which is required by Bazel 8 see https://bazel.build/external/migration
Go deps are now defined in go.mod
Resolves #131